package com.unitech.drink.service.intf;

import com.unitech.drink.api.beans.DrinkInfo;
import com.unitech.drink.api.beans.DrinkParam;
import com.unitech.drink.api.beans.DrinkSearchParam;
import com.unitech.drink.api.beans.PagedDrinkInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface DrinkService {
    DrinkInfo loadDrinkInfo(Long id);

    PagedDrinkInfo search(DrinkSearchParam request);

    DrinkInfo createDrink(DrinkParam request);

    DrinkInfo updateDrink(DrinkParam request);

    void deleteDrink(Long id);

    List<DrinkInfo> loadDrinks(List<Long> ids);

    String uploadDrinkImage(MultipartFile file);
}
